import {ITEMTYPE,SAVEINDEX,GETLIST,GETIMGS,GETSHOPCAR,GETCLASSIFY,IMGSTYPE,CLASSIFYTYPE,LISTTYPE} from "../types/store.d"

export const get_swiper=(para:IMGSTYPE)=>{
    return {
        type:GETIMGS,
        payload:para
    }
}
export const get_list=(para:LISTTYPE)=>{
    return {
        type:GETLIST,
        payload:para
    }
}
export const get_classify=(para:CLASSIFYTYPE)=>{
    return {
        type:GETCLASSIFY,
        payload:para
    }
}

export const add_shopcar=(para:ITEMTYPE)=>{
    return {
        type:GETSHOPCAR,
        payload:para
    }
}

export const save_index=(para:number)=>{
    return {
        type:SAVEINDEX,
        payload:para
    }
}